package com.lwlk.zdk.model.pw;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class pwDriverExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public pwDriverExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andIdIsNull() {
            addCriterion("id is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("id is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(Integer value) {
            addCriterion("id =", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(Integer value) {
            addCriterion("id <>", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(Integer value) {
            addCriterion("id >", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("id >=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThan(Integer value) {
            addCriterion("id <", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(Integer value) {
            addCriterion("id <=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdIn(List<Integer> values) {
            addCriterion("id in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<Integer> values) {
            addCriterion("id not in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(Integer value1, Integer value2) {
            addCriterion("id between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(Integer value1, Integer value2) {
            addCriterion("id not between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andVehicleNumberIsNull() {
            addCriterion("vehicle_number is null");
            return (Criteria) this;
        }

        public Criteria andVehicleNumberIsNotNull() {
            addCriterion("vehicle_number is not null");
            return (Criteria) this;
        }

        public Criteria andVehicleNumberEqualTo(String value) {
            addCriterion("vehicle_number =", value, "vehicleNumber");
            return (Criteria) this;
        }

        public Criteria andVehicleNumberNotEqualTo(String value) {
            addCriterion("vehicle_number <>", value, "vehicleNumber");
            return (Criteria) this;
        }

        public Criteria andVehicleNumberGreaterThan(String value) {
            addCriterion("vehicle_number >", value, "vehicleNumber");
            return (Criteria) this;
        }

        public Criteria andVehicleNumberGreaterThanOrEqualTo(String value) {
            addCriterion("vehicle_number >=", value, "vehicleNumber");
            return (Criteria) this;
        }

        public Criteria andVehicleNumberLessThan(String value) {
            addCriterion("vehicle_number <", value, "vehicleNumber");
            return (Criteria) this;
        }

        public Criteria andVehicleNumberLessThanOrEqualTo(String value) {
            addCriterion("vehicle_number <=", value, "vehicleNumber");
            return (Criteria) this;
        }

        public Criteria andVehicleNumberLike(String value) {
            addCriterion("vehicle_number like", value, "vehicleNumber");
            return (Criteria) this;
        }

        public Criteria andVehicleNumberNotLike(String value) {
            addCriterion("vehicle_number not like", value, "vehicleNumber");
            return (Criteria) this;
        }

        public Criteria andVehicleNumberIn(List<String> values) {
            addCriterion("vehicle_number in", values, "vehicleNumber");
            return (Criteria) this;
        }

        public Criteria andVehicleNumberNotIn(List<String> values) {
            addCriterion("vehicle_number not in", values, "vehicleNumber");
            return (Criteria) this;
        }

        public Criteria andVehicleNumberBetween(String value1, String value2) {
            addCriterion("vehicle_number between", value1, value2, "vehicleNumber");
            return (Criteria) this;
        }

        public Criteria andVehicleNumberNotBetween(String value1, String value2) {
            addCriterion("vehicle_number not between", value1, value2, "vehicleNumber");
            return (Criteria) this;
        }

        public Criteria andVehicleColorIsNull() {
            addCriterion("vehicle_color is null");
            return (Criteria) this;
        }

        public Criteria andVehicleColorIsNotNull() {
            addCriterion("vehicle_color is not null");
            return (Criteria) this;
        }

        public Criteria andVehicleColorEqualTo(String value) {
            addCriterion("vehicle_color =", value, "vehicleColor");
            return (Criteria) this;
        }

        public Criteria andVehicleColorNotEqualTo(String value) {
            addCriterion("vehicle_color <>", value, "vehicleColor");
            return (Criteria) this;
        }

        public Criteria andVehicleColorGreaterThan(String value) {
            addCriterion("vehicle_color >", value, "vehicleColor");
            return (Criteria) this;
        }

        public Criteria andVehicleColorGreaterThanOrEqualTo(String value) {
            addCriterion("vehicle_color >=", value, "vehicleColor");
            return (Criteria) this;
        }

        public Criteria andVehicleColorLessThan(String value) {
            addCriterion("vehicle_color <", value, "vehicleColor");
            return (Criteria) this;
        }

        public Criteria andVehicleColorLessThanOrEqualTo(String value) {
            addCriterion("vehicle_color <=", value, "vehicleColor");
            return (Criteria) this;
        }

        public Criteria andVehicleColorLike(String value) {
            addCriterion("vehicle_color like", value, "vehicleColor");
            return (Criteria) this;
        }

        public Criteria andVehicleColorNotLike(String value) {
            addCriterion("vehicle_color not like", value, "vehicleColor");
            return (Criteria) this;
        }

        public Criteria andVehicleColorIn(List<String> values) {
            addCriterion("vehicle_color in", values, "vehicleColor");
            return (Criteria) this;
        }

        public Criteria andVehicleColorNotIn(List<String> values) {
            addCriterion("vehicle_color not in", values, "vehicleColor");
            return (Criteria) this;
        }

        public Criteria andVehicleColorBetween(String value1, String value2) {
            addCriterion("vehicle_color between", value1, value2, "vehicleColor");
            return (Criteria) this;
        }

        public Criteria andVehicleColorNotBetween(String value1, String value2) {
            addCriterion("vehicle_color not between", value1, value2, "vehicleColor");
            return (Criteria) this;
        }

        public Criteria andDriverNameIsNull() {
            addCriterion("driver_name is null");
            return (Criteria) this;
        }

        public Criteria andDriverNameIsNotNull() {
            addCriterion("driver_name is not null");
            return (Criteria) this;
        }

        public Criteria andDriverNameEqualTo(String value) {
            addCriterion("driver_name =", value, "driverName");
            return (Criteria) this;
        }

        public Criteria andDriverNameNotEqualTo(String value) {
            addCriterion("driver_name <>", value, "driverName");
            return (Criteria) this;
        }

        public Criteria andDriverNameGreaterThan(String value) {
            addCriterion("driver_name >", value, "driverName");
            return (Criteria) this;
        }

        public Criteria andDriverNameGreaterThanOrEqualTo(String value) {
            addCriterion("driver_name >=", value, "driverName");
            return (Criteria) this;
        }

        public Criteria andDriverNameLessThan(String value) {
            addCriterion("driver_name <", value, "driverName");
            return (Criteria) this;
        }

        public Criteria andDriverNameLessThanOrEqualTo(String value) {
            addCriterion("driver_name <=", value, "driverName");
            return (Criteria) this;
        }

        public Criteria andDriverNameLike(String value) {
            addCriterion("driver_name like", value, "driverName");
            return (Criteria) this;
        }

        public Criteria andDriverNameNotLike(String value) {
            addCriterion("driver_name not like", value, "driverName");
            return (Criteria) this;
        }

        public Criteria andDriverNameIn(List<String> values) {
            addCriterion("driver_name in", values, "driverName");
            return (Criteria) this;
        }

        public Criteria andDriverNameNotIn(List<String> values) {
            addCriterion("driver_name not in", values, "driverName");
            return (Criteria) this;
        }

        public Criteria andDriverNameBetween(String value1, String value2) {
            addCriterion("driver_name between", value1, value2, "driverName");
            return (Criteria) this;
        }

        public Criteria andDriverNameNotBetween(String value1, String value2) {
            addCriterion("driver_name not between", value1, value2, "driverName");
            return (Criteria) this;
        }

        public Criteria andJobCertificateCodeIsNull() {
            addCriterion("job_certificate_code is null");
            return (Criteria) this;
        }

        public Criteria andJobCertificateCodeIsNotNull() {
            addCriterion("job_certificate_code is not null");
            return (Criteria) this;
        }

        public Criteria andJobCertificateCodeEqualTo(String value) {
            addCriterion("job_certificate_code =", value, "jobCertificateCode");
            return (Criteria) this;
        }

        public Criteria andJobCertificateCodeNotEqualTo(String value) {
            addCriterion("job_certificate_code <>", value, "jobCertificateCode");
            return (Criteria) this;
        }

        public Criteria andJobCertificateCodeGreaterThan(String value) {
            addCriterion("job_certificate_code >", value, "jobCertificateCode");
            return (Criteria) this;
        }

        public Criteria andJobCertificateCodeGreaterThanOrEqualTo(String value) {
            addCriterion("job_certificate_code >=", value, "jobCertificateCode");
            return (Criteria) this;
        }

        public Criteria andJobCertificateCodeLessThan(String value) {
            addCriterion("job_certificate_code <", value, "jobCertificateCode");
            return (Criteria) this;
        }

        public Criteria andJobCertificateCodeLessThanOrEqualTo(String value) {
            addCriterion("job_certificate_code <=", value, "jobCertificateCode");
            return (Criteria) this;
        }

        public Criteria andJobCertificateCodeLike(String value) {
            addCriterion("job_certificate_code like", value, "jobCertificateCode");
            return (Criteria) this;
        }

        public Criteria andJobCertificateCodeNotLike(String value) {
            addCriterion("job_certificate_code not like", value, "jobCertificateCode");
            return (Criteria) this;
        }

        public Criteria andJobCertificateCodeIn(List<String> values) {
            addCriterion("job_certificate_code in", values, "jobCertificateCode");
            return (Criteria) this;
        }

        public Criteria andJobCertificateCodeNotIn(List<String> values) {
            addCriterion("job_certificate_code not in", values, "jobCertificateCode");
            return (Criteria) this;
        }

        public Criteria andJobCertificateCodeBetween(String value1, String value2) {
            addCriterion("job_certificate_code between", value1, value2, "jobCertificateCode");
            return (Criteria) this;
        }

        public Criteria andJobCertificateCodeNotBetween(String value1, String value2) {
            addCriterion("job_certificate_code not between", value1, value2, "jobCertificateCode");
            return (Criteria) this;
        }

        public Criteria andIdCardNoIsNull() {
            addCriterion("ID_CARD_No is null");
            return (Criteria) this;
        }

        public Criteria andIdCardNoIsNotNull() {
            addCriterion("ID_CARD_No is not null");
            return (Criteria) this;
        }

        public Criteria andIdCardNoEqualTo(String value) {
            addCriterion("ID_CARD_No =", value, "idCardNo");
            return (Criteria) this;
        }

        public Criteria andIdCardNoNotEqualTo(String value) {
            addCriterion("ID_CARD_No <>", value, "idCardNo");
            return (Criteria) this;
        }

        public Criteria andIdCardNoGreaterThan(String value) {
            addCriterion("ID_CARD_No >", value, "idCardNo");
            return (Criteria) this;
        }

        public Criteria andIdCardNoGreaterThanOrEqualTo(String value) {
            addCriterion("ID_CARD_No >=", value, "idCardNo");
            return (Criteria) this;
        }

        public Criteria andIdCardNoLessThan(String value) {
            addCriterion("ID_CARD_No <", value, "idCardNo");
            return (Criteria) this;
        }

        public Criteria andIdCardNoLessThanOrEqualTo(String value) {
            addCriterion("ID_CARD_No <=", value, "idCardNo");
            return (Criteria) this;
        }

        public Criteria andIdCardNoLike(String value) {
            addCriterion("ID_CARD_No like", value, "idCardNo");
            return (Criteria) this;
        }

        public Criteria andIdCardNoNotLike(String value) {
            addCriterion("ID_CARD_No not like", value, "idCardNo");
            return (Criteria) this;
        }

        public Criteria andIdCardNoIn(List<String> values) {
            addCriterion("ID_CARD_No in", values, "idCardNo");
            return (Criteria) this;
        }

        public Criteria andIdCardNoNotIn(List<String> values) {
            addCriterion("ID_CARD_No not in", values, "idCardNo");
            return (Criteria) this;
        }

        public Criteria andIdCardNoBetween(String value1, String value2) {
            addCriterion("ID_CARD_No between", value1, value2, "idCardNo");
            return (Criteria) this;
        }

        public Criteria andIdCardNoNotBetween(String value1, String value2) {
            addCriterion("ID_CARD_No not between", value1, value2, "idCardNo");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIsNull() {
            addCriterion("create_time is null");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIsNotNull() {
            addCriterion("create_time is not null");
            return (Criteria) this;
        }

        public Criteria andCreateTimeEqualTo(Date value) {
            addCriterion("create_time =", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotEqualTo(Date value) {
            addCriterion("create_time <>", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThan(Date value) {
            addCriterion("create_time >", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("create_time >=", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThan(Date value) {
            addCriterion("create_time <", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThanOrEqualTo(Date value) {
            addCriterion("create_time <=", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIn(List<Date> values) {
            addCriterion("create_time in", values, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotIn(List<Date> values) {
            addCriterion("create_time not in", values, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeBetween(Date value1, Date value2) {
            addCriterion("create_time between", value1, value2, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotBetween(Date value1, Date value2) {
            addCriterion("create_time not between", value1, value2, "createTime");
            return (Criteria) this;
        }

        public Criteria andCertificateOrganizationIsNull() {
            addCriterion("certificate_organization is null");
            return (Criteria) this;
        }

        public Criteria andCertificateOrganizationIsNotNull() {
            addCriterion("certificate_organization is not null");
            return (Criteria) this;
        }

        public Criteria andCertificateOrganizationEqualTo(String value) {
            addCriterion("certificate_organization =", value, "certificateOrganization");
            return (Criteria) this;
        }

        public Criteria andCertificateOrganizationNotEqualTo(String value) {
            addCriterion("certificate_organization <>", value, "certificateOrganization");
            return (Criteria) this;
        }

        public Criteria andCertificateOrganizationGreaterThan(String value) {
            addCriterion("certificate_organization >", value, "certificateOrganization");
            return (Criteria) this;
        }

        public Criteria andCertificateOrganizationGreaterThanOrEqualTo(String value) {
            addCriterion("certificate_organization >=", value, "certificateOrganization");
            return (Criteria) this;
        }

        public Criteria andCertificateOrganizationLessThan(String value) {
            addCriterion("certificate_organization <", value, "certificateOrganization");
            return (Criteria) this;
        }

        public Criteria andCertificateOrganizationLessThanOrEqualTo(String value) {
            addCriterion("certificate_organization <=", value, "certificateOrganization");
            return (Criteria) this;
        }

        public Criteria andCertificateOrganizationLike(String value) {
            addCriterion("certificate_organization like", value, "certificateOrganization");
            return (Criteria) this;
        }

        public Criteria andCertificateOrganizationNotLike(String value) {
            addCriterion("certificate_organization not like", value, "certificateOrganization");
            return (Criteria) this;
        }

        public Criteria andCertificateOrganizationIn(List<String> values) {
            addCriterion("certificate_organization in", values, "certificateOrganization");
            return (Criteria) this;
        }

        public Criteria andCertificateOrganizationNotIn(List<String> values) {
            addCriterion("certificate_organization not in", values, "certificateOrganization");
            return (Criteria) this;
        }

        public Criteria andCertificateOrganizationBetween(String value1, String value2) {
            addCriterion("certificate_organization between", value1, value2, "certificateOrganization");
            return (Criteria) this;
        }

        public Criteria andCertificateOrganizationNotBetween(String value1, String value2) {
            addCriterion("certificate_organization not between", value1, value2, "certificateOrganization");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}